#-*- coding: utf-8 -*-
#
# Copyright (C) 2006 Ville Leskinen
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA

"""This module provides default picture and thumbnail templates and a css file for them"""

defaultCSS = """img {
	border: 0px
}

div.thumb {
	float: left;
	padding: 10px
}

div.thumb p {
	text-align: center
}

div.thumbbox {
	border: 1px solid #000;
	background-color: #fff
}

div.spacer {
	clear: both
}

div.picture {
	padding: 10px;
	border: 1px solid #000
}

div.picture p {
	text-align: center
}

div.nav_block {
	text-align: center
}

div.nav_block ul {
	list-style-type: none 
}

div.nav_block li {
	display: inline
}

div.nav_block a {
	color: #000;
	background: #fff;
	padding: 3px 20px 3px 20px;
	border: 1px solid #000;
	text-decoration: none
}

div.nav_block a:hover {
	color: #fff;
	background: #000;
}"""

defaultThumbHTML="""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<title>$TITLE</title>

		<link rel="stylesheet" href="$CSSFILE" type="text/css" />
	</head>
	<body>
		<h1>$TITLE</h1>
		<div class="thumbbox">
			<div class="spacer">
				&nbsp;
			</div>
			$THUMBS
			<div class="spacer">
				&nbsp;
			</div>
		</div>
	</body>
</html>"""

defaultPicHTML="""<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<title>$PICTITLE</title>
		<link rel="stylesheet" href="$CSSFILE" type="text/css"/>
	</head>
	<body>
		<div class="picture">
			<div class="nav_block">
				<ul>
					$NAVIGATION
				</ul>
			</div>
			<p>
			$PICTURE
			</p>
			<div class="nav_block">
				<ul>
					$NAVIGATION
				</ul>
			</div>			
		</div>
	</body>
</html>"""
